<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <title>my-search</title>
  <meta name='viewport' content='width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0'>
  <link rel="icon" href="./favicon.ico">
  <link rel="stylesheet" href="./lib/fa/css/font-awesome.css">
  <link rel="stylesheet" href="./lib/mui/css/mui.css">
  <link rel="stylesheet" href="./css/common.css">
  <link rel="stylesheet" href="./css/search.css">
</head>

<body>

  <div class="lt_container">
    <!-- 头部 -->
    <div class="lt_header">
      <div class="icon_left">
        <a href="javascript:history.back();" class="mui-icon mui-icon-back"></a>
      </div>
      <h4>搜索中心</h4>
    </div>
    <!-- 内容 -->
    <div class="lt_main ">
        <div class="mui-scroll-wrapper">
          <div class="mui-scroll">
            <!--搜索框-->
           <div class="search_box">
             <input type="text" placeholder="请输入搜索关键字">
             <button class="mui-btn mui-btn-primary">搜索</button>
           </div>
           <!-- 历史记录 -->
            <div class="search_history">
           
           </div>
          </div>
        </div>
    </div>
    <!-- 底部 -->
    <div class="lt_footer">
      <ul class="mui-clearfix">
        <li >
          <a href="index.html">
            <span class="fa fa-home"></span>
            <p>首页</p>
          </a>
        </li>
        <li >
          <a href="category.html">
            <span class="fa fa-bars"></span>
            <p>分类</p>
          </a>
        </li>
        <li>
          <a href="cart.html">
            <span class="fa fa-shopping-cart"></span>
            <p>购物车</p>
          </a>
        </li>
        <li>
          <a href="user.html">
            <span class="fa fa-user"></span>
            <p>会员中心</p>
          </a>
        </li>
      </ul>
    </div>
  </div>

    <script type="text/template" id = "tmp">
      {{if list.length ===0}}
      <p>历史记录为空</p>
      {{else}}
      <div class="history_tit mui-clearfix">
        <span class="mui-pull-left">搜索历史</span>
        <span class="mui-pull-right fa fa-trash icon_deleteAll">清空记录</span>
      </div>
      <div class="hidtory_content">
        <ul>
            {{each list v i}}
            <li class="mui-clearfix">
                <a href="searchList.html" class="mui-pull-left">{{v}}</a>
                <span class="mui-icon mui-icon-closeempty mui-pull-right icon_delete" data-index = {{i}} ></span>
            </li>
            {{/each}}
          </ul>
      </div>
      
      {{/if}}
    </script>

    
  <script src="./lib/zepto/zepto.min.js"></script>
  <script src="./lib/mui/js/mui.js"></script>
  <script src="./lib/artTemplate/template-web.js"></script>
  <script src="./js/common.js"></script>
  <script src="./js/search.js"></script>
  <script>



  </script>
</body>

</html>